hud.add(function(v, player) // basic hud
	if not mapheaderinfo[gamemap].rainfoliage then return end
	
	if not player.mo
	return end
	
	
	if (gametype > 1) then return end
	
	local xoffset = hudinfo[HUD_RINGS].x
	local yoffset = hudinfo[HUD_RINGS].y+16
	local flags = V_HUDTRANS|V_SNAPTOTOP|V_SNAPTOLEFT|V_PERPLAYER
	local textcolor = "\x82"
	local lapcount = min(player.metalracelap,3)
	local text = lapcount.."/3"
	local align = "thin"
	
	text = "Lap".."\x85" .. textcolor .. " " .. $
	v.drawString(xoffset,yoffset,text,flags,align)
	
	if player.metalcountdown and player.metalcountdown >= 0 then
	yoffset = hudinfo[HUD_RINGS].y+29
	
	textcolor = "\x85"
	text = "Race "..textcolor .. G_TicsToMinutes(player.metalcountdown)..":"..G_TicsToSeconds(player.metalcountdown).."."..G_TicsToCentiseconds(player.metalcountdown)
	v.drawString(xoffset,yoffset,text,flags,align)
	end
end)
